/**
 * Created by yesi on 15/5/16.
 */

var mongo = require("./server/mongo/mongo");

mongo.connect(function(err,db){
    var query = new Object();
    query.username = "yesi";
    mongo.findByDb(query,mongo.user,db,function(err,result,db){
        console.log(result)
    });

    var update = new Object();
    update.username = "yesi";
    update.password = "456";
    mongo.updateByDb(query,update,mongo.user,db,function(err,result,db){
        console.log(result)
    });
});